package com.king.utils;

/**
 * @ClassName: StringUtil
 * @Description: TODO
 * @Author: wangchangyong
 * @Date: 2020/4/12 11:38
 * @Version: 1.0.0
 **/
public class StringUtil {

    /**
     * 首字母小写
     * @param str
     * @return
     */
    public static String lowerFirst(String str){
        char[] chars = str.toCharArray();
        if(chars[0] >= 'A' && chars[0] <= 'Z'){
            chars[0] += 32;
        }
        return String.valueOf(chars);
    }
}
